package com.sprboot.demo.conf;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import com.sprboot.demo.domain.vo.Student;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Component
@ConfigurationProperties(prefix = "author")
@Data
@NoArgsConstructor
@AllArgsConstructor
// @PropertySource("classpath:my.properties")
public class AuthorSettings {
	private String name;
	private Long age;
	private Student student;
	
}
